package com.qf.shop.home.controller;

import com.qf.shop.system.api.CatgoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * @author: admin
 * @time: 2022/5/20 11:36
 */

@RestController
public class CatgoryController {
    @Resource
    private CatgoryService catgoryService;
    @GetMapping("/catgory/sortList")
    public ArrayList treeList() {
        return catgoryService.treeList();
    }
}
